package com.ruoyi.service.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.service.user.entity.UserEntity;
import com.ruoyi.service.user.query.LaborPopQuery;
import com.ruoyi.service.user.query.LaborQuery;
import com.ruoyi.service.user.query.UserQuery;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author Zane
 * @since 2025-09-27
 */
public interface UserService extends IService<UserEntity> {

  UserEntity getUserInfoByMobile(String phone, String userType);

  List<UserEntity> getByUserNameOrMobile(String userName, String phone, String userType);

  UserEntity getByUserNameAndPwd(String userName, String password, String userType);

  List<UserEntity> listLaborByQuery(LaborQuery laborQuery);

  List<UserEntity>  selectLaborByQuery(LaborPopQuery popQuery);

  List<UserEntity>  selectProjectLeader(LaborPopQuery popQuery);

  Long getLaborCount();

  /**
   * 劳务方待审
   */
  Long getLaborApproval();

  List<UserEntity> listUserNeedCheck(LaborQuery query);
  /**
   * 获取用户信息Map
   */
  Map<Long, UserEntity> userMapByIds(List<Long> userIds);

  List<UserEntity> demanderUserManageList(UserQuery query,String creator);
}
